Limit MAC address learning to limit the number of forwarding database entries to protect the FDB.
default mac-security limit-learning [port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]}] enable
default mac-security limit-learning [port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]}] max-addrs
default mac-security port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} limit-learning enable
default mac-security port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} limit-learning port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} enable
default mac-security port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} limit-learning port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} max-addrs
mac-security limit-learning enable
mac-security limit-learning {port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]}} max-addrs <1-64000>
no mac-security [port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} ] limit-learning [enable]
Identifies the slot and port in one of the following formats:
a single slot and port (slot/port)
a range of slots and ports (slot/port-slot/port)
a series of slots and ports (slot/port,slot/port,slot/port)
all ports on the same slot (slot/all)
all ports on the switch (all)
None
GigabitEthernet Interface Configuration
This command does not apply to all hardware platforms. For more information about feature support, see Fabric Engine and VOSS Feature Matrix.